package com.fowo.api.sys.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.Date;

@Data
@Schema(title = "系统任务日志")
@TableName("sys_task_log")
public class SysTaskLog {

    @TableId(type = IdType.ASSIGN_ID)
    @Schema(title = "编号")
    private Long id;

    @Schema(title = "任务编号")
    private Long taskId;

    public static final Integer STATUS_NONE = 0;
    public static final Integer STATUS_RUNNING = 1;
    public static final Integer STATUS_ERROR = 2;

    @Schema(title = "状态")
    private Integer status;

    @Schema(title = "消息")
    private String message;

    @Schema(title = "长消息体")
    private String fullMessage;

    @Schema(title = "创建时间")
    private Date createTime;
}
